package com.toe.commodity.webapi.service.impl;

import com.toe.commodity.service.CommodityGoodsSpecificationsService;
import com.toe.commodity.webapi.mapper.CommodityGoodsSpecificationsMapper;
import com.toe.pojo.entity.commodity.CommodityGoodsSpecifications;
import com.toe.pojo.vo.commodity.CommodityGoodsSpecificationsVO;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@DubboService
public class CommodityGoodsSpecificationsServiceImpl implements CommodityGoodsSpecificationsService {

    @Autowired
    CommodityGoodsSpecificationsMapper commodityGoodsSpecificationsMapper;

    @Override
    public List<CommodityGoodsSpecificationsVO> getSpecificationsList(Long id) {
        return commodityGoodsSpecificationsMapper.getSpecificationsList(id);
    }

    @Override
    public CommodityGoodsSpecificationsVO getSpecificationsById(Long id) {
        return commodityGoodsSpecificationsMapper.getSpecificationsById(id);
    }

    @Override
    public List<CommodityGoodsSpecificationsVO> listSpecificationsByIds(List<Long> ids) {
        return commodityGoodsSpecificationsMapper.listSpecificationsByIds(ids);
    }

    @Override
    public void addNewSpecifications(CommodityGoodsSpecifications goodsSpecifications) {
        commodityGoodsSpecificationsMapper.addNewSpecifications(goodsSpecifications);
    }


}
